@echo off
echo 测试PDF报告API接口...
echo.

:: 设置变量
set SONAR_URL=http://localhost:9000
set PROJECT_KEY=your-project-key
set TOKEN=your-token

:: 测试服务状态
echo 1. 测试服务状态...
curl -X GET http://localhost:8080/status

echo.
echo 2. 测试支持的报告类型...
curl -X GET http://localhost:8080/report-types

echo.
echo 3. 生成PDF报告示例...
echo curl -X POST http://localhost:8080/generate ^
echo   -H "Content-Type: application/json" ^
echo   -d "{\"projectKey\":\"%PROJECT_KEY%\",\"sonarUrl\":\"%SONAR_URL%\",\"token\":\"%TOKEN%\",\"reportType\":\"executive\"}"

echo.
echo 请替换your-project-key、your-token为实际值
echo 服务启动后访问 http://localhost:8080/swagger-ui.html (如果配置了swagger)
pause